package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
/**
 * @ClassName Log
 * @Description 基于Log对象封装用户的行为日志
 * 谁在什么时间执行了什么操作,访问了什么方法,传递了什么参数,访问时长是多少.
 * @Author Jiyao
 * @DATE 2021-11-30 08:04
 * @Version 1.0
 **/
@Data
@TableName("tb_logs")
public class Log implements Serializable {

    private static final long serialVersionUID = -6882496803862701898L;
    private Long id;
    private String username;
    private String operation;
    private String method;
    private String params;
    private Long time;
    private String ip;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("createdTime")
    private Date createdTime;
    private Integer status;
    private String error;
}

